package com.zuijin.vue2blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 第三方用户登录表
 * </p>
 *
 * @author 醉瑾
 * @since 2022-04-24
 */
@TableName("user_thrid")
@ApiModel(value = "UserThrid对象", description = "第三方用户登录表")
public class UserThrid implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty("第三方登录类型 0->QQ 1->微信")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("第三方应用唯一标识")
    @TableField("openid")
    private String openid;

    @ApiModelProperty("QQ、微信 Unionid")
    @TableField("unionid")
    private Integer unionid;

    @ApiModelProperty("第三方保存的token")
    @TableField("access_token")
    private String accessToken;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getUnionid() {
        return unionid;
    }

    public void setUnionid(Integer unionid) {
        this.unionid = unionid;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Override
    public String toString() {
        return "UserThrid{" +
        "id=" + id +
        ", uid=" + uid +
        ", type=" + type +
        ", openid=" + openid +
        ", unionid=" + unionid +
        ", accessToken=" + accessToken +
        "}";
    }
}
